how to uncheck a checkbox in jquery

109

how to uncheck a checkbox in jquery -

$("#myCheckBox").prop("checked", false);

get unchecked checkbox jquery -

if ($("#check_box_id").is(':checked')) {
  alert("checked");
}else{
  alert("unchecked");
}

jquery checkbox unchecked -

$("input:radio[name='NAME']:radio[value='VALUE']").attr("checked",true);
$("input:radio[name='NAME']").removeAttr("checked");

Comments

Submit
0 Comments